<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>新生报到系统</title>
<%-- <link rel="stylesheet" type="text/css"
	href="${path}/css/studentlogin.css" /> --%>
<link rel="stylesheet" href="${path}/css/bootstrap.css">
<script src="${path}/js/jquery-3.4.1.min.js"></script>
<script src="${path}/js/bootstrap.min.js"></script>
<style type="text/css">
body {
	background: #ffffff url(../images/login/2.jpg);
	background-size: 100% 100%;
}
</style>
</head>
<body>
	<div style="height: 10%">
		<input type="hidden" name="id" value="${student.id}">
	</div>
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-4 column"></div>
			<div class="col-md-4 column">
				<form role="form" action="/student/register" method="post"
					enctype="multipart/form-data">
					<input type="hidden" name="id" value="${student.id}">
					<h2 style="text-align: center; color: white;">信息注册</h2>
					<div class="form-group">
						<input type="text" placeholder="姓名" readonly='readonly'
							class="form-control" name="username" value="${student.username }" />
					</div>
					<div class="form-group">
						<input type="text" placeholder="学号" readonly='readonly'
							class="form-control" name="studentid"
							value="${student.studentid }" />
					</div>
					<div class="form-group">
						<input type="password" placeholder="设置登陆密码" required="required"
							class="form-control" name="password" maxlength="15" />
					</div>
					<div class="form-group" style="font-size: 15px">
						<input title="出生年月" placeholder="出生年月" class="form-control"
							type="date" name="date" required="required" autocomplete="off" />
					</div>
					<div class="form-group" style="font-size: 15px">
						<input type="text" class="form-control" placeholder="家庭住址"
							name="address" maxlength="30" />
					</div>
					<div class="form-group" style="font-size: 15px">

						<input type="text" class="form-control" placeholder="联系电话"
							name="phone" maxlength="15"
							onkeyup="value=value.replace(/[^\d]/g,'')" />
					</div>
					<div class="form-group" style="font-size: 15px">

						<input type="text" class="form-control" placeholder="QQ" name="qq"
							maxlength="15" onkeyup="value=value.replace(/[^\d]/g,'')" />
					</div>
					<div class="form-group" style="font-size: 20px">
						<label>性别:</label> <label>男</label> <input type="radio" value="1"
							name='sex'> <label>女</label> <input type="radio"
							value="2" name='sex'>
					</div>
					<div class="form-group" style="font-size: 15px">
						<p>
							头像：<input type="file" id="exampleInputFile" name="file" />
						</p>
					</div>
					<button type="submit" class="btn btn-default"
						style="width: 100%; background-color: blue; color: white;">提交</button>
				</form>
			</div>
			<div class="col-md-4 column"></div>
		</div>
	</div>
	<script type="text/javascript">
		if ("${type}" == "register") {
			alert("${msg }");
		}
	</script>
</body>
</html>
